what pilots do in the cockpit